﻿<!--***********************************************************************************

   AvalonDock

   Copyright (C) 2007-2013 Xceed Software Inc.

   This program is provided to you under the terms of the New BSD
   License (BSD) as published at http://avalondock.codeplex.com/license 

   For more features, controls, and fast professional support,
   pick up AvalonDock in Extended WPF Toolkit Plus at http://xceed.com/wpf_toolkit

   Stay informed: follow @datagrid on Twitter or Like facebook.com/datagrids

  **********************************************************************************-->

<Window x:Class="AvalonDockTest.Window4"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ad="clr-namespace:AvalonDock;assembly=AvalonDock"
    Title="Text Document Source" Height="600" Width="800" >
	<DockPanel>
		<ToolBar DockPanel.Dock="Top">
            <Button Content="Add Documents" Click="btnAddDocuments_Click"/>
            <Button Content="Remove Current" Click="btnRemoveCurrent_Click"/>
            <Button Content="Remove All" Click="btnRemoveAll_Click"/>
        </ToolBar>
		<ad:DockingManager x:Name="dockingManager" Loaded="dockingManager_Loaded" DocumentsSource="{Binding Path=MyDocs}" RequestDocumentClose="dockingManager_RequestDocumentClose">
			<ad:DocumentPane x:Name="_documentHost" />
		</ad:DockingManager>
	</DockPanel>
</Window> 
